package com.lovo.sys.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDate;

@TableName("inventory_records")
@Getter
@Setter
@NoArgsConstructor
@ApiModel(value = "库存记录实体", description = "库存记录实体")
public class InventoryRecordsBean {
    @TableId(value = "pk_irId",type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private long irId;

    @TableField("ir_productName")
    @ApiModelProperty(value = "商品名")
    private String productName;

    @TableField("ir_createDate")
    @ApiModelProperty(value = "记录时间")
    private LocalDate createDate=LocalDate.now();

    @TableField("ir_num")
    @ApiModelProperty(value = "变化数量")
    private String num;

    public InventoryRecordsBean(String productName, String num) {
        this.productName = productName;
        this.num = num;
    }
}
